import layout from '@/layout'
export default {
  path: '/employee',
  name: 'employee',
  component: layout,
  children: [
    {
      path: '',
      component: () => import('@/views/employee'),
      meta: {
        title: '员工',
        icon: 'people'
      }
    },
    {
      // 跳转到这个路由时携带参数，动态路由传参
      path: 'detail/:id?',
      name: 'detail',
      component: () => import('@/views/employee/Detail.vue'),
      meta: {
        // 展示在侧边栏或者面包屑中，就算不需要侧边栏有面包屑也需要写
        title: '员工详情'
      },
      hidden: true
    }
  ]
}
